<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>便携线充</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    #parse('/headFiles.html')
</head>
<body>
<div class="layui-fluid">
    <div class="layui-card layui-form" wid100>
        <input type="hidden" name="deviceSn" value="$!{deviceSn}"/>
        <div class="layui-card-body">
            <div class="layui-row">
                <div class="layui-col-sm4">
                    <div class="layui-form-item">
                        <label class="layui-form-label">设备序列号</label>
                        <div class="layui-input-block">
                            <div class="layui-form-mid layui-word-aux">$!{deviceSn}</div>
                        </div>
                    </div>
                </div>
                <div class="layui-col-sm4">
                    <div class="layui-form-item">
                        <label class="layui-form-label">设备类型</label>
                        <div class="layui-input-block">
                            <div class="layui-form-mid layui-word-aux">$!{deviceTypeName}($!{deviceTypeId})</div>
                        </div>
                    </div>
                </div>
                <div class="layui-col-sm4">
                    <div class="layui-form-item">
                        <label class="layui-form-label">设备状态</label>
                        <div class="layui-input-block">
                            <div class="layui-form-mid layui-word-aux">
                                #if($state == 2)
                                <span class="layui-badge layui-bg-green">$!{stateName}</span>
                                #else
                                <span class="layui-badge layui-bg-black">$!{stateName}</span>
                                #end
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-row">
                <div class="layui-col-sm4">
                    <div class="layui-form-item">
                        <label class="layui-form-label">协议</label>
                        <div class="layui-input-block">
                            <div class="layui-form-mid layui-word-aux">$!{protocolType}</div>
                        </div>
                    </div>
                </div>
                <div class="layui-col-sm4">
                    <div class="layui-form-item">
                        <label class="layui-form-label">密码密钥</label>
                        <div class="layui-input-block">
                            <div class="layui-form-mid layui-word-aux">$!{pwdIndex}</div>
                        </div>
                    </div>
                </div>
                <div class="layui-col-sm4">
                    <div class="layui-form-item">
                        <label class="layui-form-label">当前密码序号</label>
                        <div class="layui-input-block">
                            <div class="layui-form-mid layui-word-aux">$!{secretKey}</div>
                        </div>
                    </div>
                </div>
            </div>
            #if($note)
            <div class="layui-row">
                <div class="layui-col-sm6">
                    <div class="layui-form-item">
                        <label class="layui-form-label">备注信息</label>
                        <div class="layui-input-block">
                            <div class="layui-form-mid layui-word-aux">$!{note}</div>
                        </div>
                    </div>
                </div>
            </div>
            #end
            <div class="layui-row">
                <div class="layui-col-sm4">
                    <div class="layui-form-item">
                        <label class="layui-form-label">最后工作时间</label>
                        <div class="layui-input-block">
                            #if($lastWorkDate)
                            <div class="layui-form-mid layui-word-aux">$!{utils.dateFormat($lastWorkDate,'yyyy-MM-dd HH:mm:ss')}</div>
                            #else
                            <div class="layui-form-mid layui-word-aux">未工作过</div>
                            #end
                        </div>
                    </div>
                </div>
                <div class="layui-col-sm4">
                    <div class="layui-form-item">
                        <label class="layui-form-label">最后修改时间</label>
                        <div class="layui-input-block">
                            <div class="layui-form-mid layui-word-aux">$!{utils.dateFormat($updateDate,'yyyy-MM-dd HH:mm:ss')}</div>
                        </div>
                    </div>
                </div>
                <div class="layui-col-sm4">
                    <div class="layui-form-item">
                        <label class="layui-form-label">创建时间</label>
                        <div class="layui-input-block">
                            <div class="layui-form-mid layui-word-aux">$!{utils.dateFormat($createDate,'yyyy-MM-dd HH:mm:ss')}</div>
                         </div>
                    </div>
                </div>
            </div>
        </div>
    </div><!-- /.layui-form -->

    #if($device.placeId || $device.userId)
    <div class="layui-card layui-form" wid100>
        <div class="layui-card-body">
            #if($device.placeId)
            <div class="layui-row">
                <div class="layui-col-sm4">
                    <div class="layui-form-item">
                        <label class="layui-form-label">部署网点</label>
                        <div class="layui-input-block">
                            <div class="layui-form-mid layui-word-aux">$!{device.placeName}</div>
                        </div>
                    </div>
                </div>
                <div class="layui-col-sm4">
                    <div class="layui-form-item">
                        <label class="layui-form-label">部署地区</label>
                        <div class="layui-input-block">
                            <div class="layui-form-mid layui-word-aux">$!{device.areaName}</div>
                        </div>
                    </div>
                </div>
                <div class="layui-col-sm4">
                    <div class="layui-form-item">
                        <label class="layui-form-label">部署时间</label>
                        <div class="layui-input-block">
                            <div class="layui-form-mid layui-word-aux">$!{utils.dateFormat($device.deployDate,'yyyy-MM-dd HH:mm:ss')}</div>
                        </div>
                    </div>
                </div>
            </div>
            #if($device.bindNote)
            <div class="layui-row">
                <div class="layui-col-sm6">
                    <div class="layui-form-item">
                        <label class="layui-form-label">部署备注</label>
                        <div class="layui-input-block">
                            <div class="layui-form-mid layui-word-aux">$!{device.bindNote}</div>
                        </div>
                    </div>
                </div>
            </div>
            #end
            #end
            #if($device.userId)
            <div class="layui-row">
                <div class="layui-col-sm4">
                    <div class="layui-form-item">
                        <label class="layui-form-label">设备所属人</label>
                        <div class="layui-input-block">
                            <div class="layui-form-mid layui-word-aux">$!{device.userName}($!{device.userPhone})</div>
                        </div>
                    </div>
                </div>
                <div class="layui-col-sm4">
                    <div class="layui-form-item">
                        <label class="layui-form-label">归属时间</label>
                        <div class="layui-input-block">
                            <div class="layui-form-mid layui-word-aux">$!{utils.dateFormat($device.belongDate,'yyyy-MM-dd HH:mm:ss')}</div>
                        </div>
                    </div>
                </div>
            </div>
            #end
        </div>
    </div>
    #end
</div>
#parse('/footFiles.html')
<script type="text/javascript">
layui.config({
	base: '$!{webRoot}/assets/layuiadmin/'
	,webRoot:'$!{webRoot}'
}).extend({
	index: 'lib/index'
}).use(['index', 'form']);
</script>
</body>
</html>